package com.itany.cloud.global;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.itany.cloud.util.ResponseResult;

/**
 * @author 石小俊
 */
public class GlobalSentinelException {

    // 方法要求:方法必须通过static修饰
    public static ResponseResult handlerException(BlockException e) {
        return ResponseResult.fail("全局Sentinel异常,异常为:" + e);
    }
}
